package com.megaspacevr.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 匿名用户表-用于设备识别
 * </p>
 *
 * @author yezi
 * @since 2025-06-17
 */
@Getter
@Setter
@ToString
@TableName("anonymous_users")
@Schema(name = "AnonymousUsers", description = "匿名用户表-用于设备识别")
public class AnonymousUsers implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "用户唯一标识")
    private String userToken;

    @Schema(description = "设备指纹信息")
    private String deviceFingerprint;

    @Schema(description = "首次访问IP")
    private String ipAddress;

    @Schema(description = "浏览器信息")
    private String userAgent;

    @Schema(description = "首次访问时间")
    private LocalDateTime firstVisitTime;

    @Schema(description = "最后访问时间")
    private LocalDateTime lastVisitTime;

    @Schema(description = "访问次数")
    private Integer visitCount;

    @Schema(description = "预约总数")
    private Integer bookingCount;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;

}
